import Vue from 'vue'
import VueRouter from 'vue-router'
//import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    redirect:'/home',
  },
  {
    path: '/home',
    name: 'Home',
    component: ()=>import('../views/Home.vue'),
    children:[
      {
        path:'',
        redirect:'homepage'
      },
      {
        // path:'/info',
         path:'homepage',
         name:'homepage',
         component:()=>import('../views/component/HomePage.vue')
       },
       {
         //path:'/wallet',
         path:'swagger',
         name:'swagger',
         component:()=>import('../views/component/Swagger.vue')
       },
       {
        //path:'/wallet',
        path:'all',
        name:'all',
        component:()=>import('../views/document/All.vue')
      },
      {
        //path:'/wallet',
        path:'docu',
        name:'docu',
        component:()=>import('../views/document/Docu.vue')
      },
      {
        //path:'/wallet',
        path:'selfdom',
        name:'selfdom',
        component:()=>import('../views/document/Selfdom.vue')
      },
    ]
  },
]

const router = new VueRouter({
  routes,
  linkActiveClass:'a'
})

export default router
